import { request } from '@/common/utils/request'

// 预警列表
export const alarmListApi = (data) => {
    return request({
        url: '/biz/alertRecords/page',
        method: 'GET',
        data
    })
}
// 获取预警记录详情
export const detailApi = (data) => {
  return request({
      url: '/biz/alertRecords/detail',
      method: 'GET',
      data
  })
}

// 预警处理
export const handleAlarmApi = (data) => {
    return request({
        url: '/biz/alertRecords/handleAlert',
        method: 'POST',
        data
    })
}

// 预警角标数量显示
export const warnTodoNumberApi = (data) => {
    return request({
        url: '/h5/getMyTodoCount',
        method: 'GET',
        data
    })
}